lib_arch/board.c: Move malloc initialization before flash_init()
authorStefan Roese <[email protected]>
Mon, 11 May 2009 13:50:12 +0000 (15:50 +0200)
committerWolfgang Denk <[email protected]>
Fri, 12 Jun 2009 18:39:47 +0000 (20:39 +0200)
commitc790b04d230363d03939dc008bcc80f3ba4de1ae
treec3e0873b01e2f6f38648177f31358c623825f01d
parentd873133f2ba9bd613d5f6552c31cc70fb13f15d3
lib_arch/board.c: Move malloc initialization before flash_init()

This patch moves the malloc initialization before calling flash_init().
Upcoming changes to the NOR FLASH common CFI driver with optional
MTD infrastructure and MTD concatenation support will call malloc().
And nothing really speaks against enabling malloc just a little earlier
in the boot stage. Some architectures already enable malloc before
calling flash_init() so they don't need any changes here.

Signed-off-by: Stefan Roese <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Scott McNutt <[email protected]>
Cc: Shinya Kuribayashi <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Daniel Hellstrom <[email protected]>
Cc: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: John Rigby <[email protected]>
lib_arm/board.c
lib_blackfin/board.c
lib_m68k/board.c
lib_mips/board.c
lib_nios/board.c
lib_nios2/board.c
lib_ppc/board.c
lib_sh/board.c
lib_sparc/board.c